package com.exam.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.exam.demo.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 功能描述
 *
 * @author yxj30
 * @date 2022/03/16  19:31
 */
@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    @Select("select id from role where flag = #{flag}")
    Integer selectByFlag(@Param("flag") String flag);

}
